package com.hxzy.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hxzy.common.core.domain.TreeSelect;
import com.hxzy.common.core.domain.entity.CmsCategory;
import com.hxzy.common.core.domain.entity.SysDictType;
import com.hxzy.common.core.domain.entity.SysMenu;
import com.hxzy.system.domain.dto.CategoryListDto;

import java.util.List;


/**
 * @author 64689
 */
public interface CategoryService extends IService<CmsCategory> {




    List<CmsCategory> selectMenuList(CategoryListDto categoryListDto);

    List<TreeSelect> buildMenuTreeSelect(List<CmsCategory> menus);

    CmsCategory selectByTitle(String categoryTitle);


    List<SysDictType> selectTitleAll();

    CmsCategory selectDeptById(Long id);

    boolean updateBy(CmsCategory category);

    boolean hasChildById(Long id);

    List<CmsCategory> selectBy(String categoryTitle);
}
